package com.wj.activiti.command;

import com.wj.activiti.command.impl.CommandA;
import com.wj.activiti.command.impl.CommandB;

public class Client {

    public static void main(String[] args) {
        //创建命令执行者
        CommandExecutor executor = new CommandExecutor();
        //创建命令 A，交由命令执行者执行
        Command commandA = new CommandA();
        executor.execute(commandA);
        //创建命令 B，交由命令执行者执行
        Command commandB = new CommandB();
        executor.execute(commandB);

    }
}
